﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActiveList.aspx.cs" Inherits="LongQuanWeb.Admin.ActiveList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellspacing="1" cellpadding="3" width="96%" align="center" class="gv_css">
            <tr>
                <td class="UserTableRow2" width="33%" colspan="3">
                    <div align="left">
                        <asp:Button ID="btn_add" runat="server" Text="新增新闻" CausesValidation="False" OnClick="btn_add_Click" />
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="gv_active" runat="server" Width="100%" AutoGenerateColumns="False"
                        CssClass="gv_css" OnRowCommand="gv_new_RowCommand">
                        <RowStyle CssClass="row" />
                        <AlternatingRowStyle CssClass="alterRow" />
                        <Columns>
                            <asp:TemplateField HeaderText="编号">
                                <ItemTemplate>
                                    <%#Eval("AcitivityNum")%>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="标题">
                                <ItemTemplate>
                                    <%#Eval("ActivityName")%>
                                </ItemTemplate>
                                <HeaderStyle Width="30%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="浏览量">
                                <ItemTemplate>
                                    <%#Eval("BrowerCount")%>
                                </ItemTemplate>
                                <HeaderStyle Width="10%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="发布时间">
                                <ItemTemplate>
                                    <%# DateTime.Parse(Eval("createtime").ToString()).ToString("yyyy-MM-dd HH:mm:ss")%>
                                </ItemTemplate>
                                <HeaderStyle Width="25%"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:Button ID="del" CommandName="del" CommandArgument='<%#Eval("AcitivityNum")%>'
                                        runat="server" Text="删除" OnClientClick='return confirm("确认要删除吗？")' />
                                    <asp:Button ID="up" CommandName="up" CommandArgument='<%#Eval("AcitivityNum")%>'
                                        runat="server" Text="修改" />
                                </ItemTemplate>
                                <HeaderStyle Width="20%"></HeaderStyle>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                        CurrentPageIndex="1" EnableTheming="true" FirstPageText="首页" LastPageText="尾页"
                        NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageSize="10" PrevPageText="上一页"
                        ShowPageIndexBox="Never" UrlPaging="true" Width="100%">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
